package com.tepth.remote.control.delegate.apply.create;

import com.tepth.remote.core.net.callback.IError;
import com.tepth.remote.core.net.callback.ISoapSuccess;
import com.tepth.remote.core.net.soap.SoapClient;

import java.util.WeakHashMap;

/**
 * Description:
 *
 * @author Hequn.Lee
 * @date 2018/11/24
 */
public class ApplyCreateModel implements ApplyCreateContract.Model {

    @Override
    public void onApply(WeakHashMap<String, Object> params,
                        String methodName,
                        String nameSpace,
                        ISoapSuccess success,
                        IError error) {
        SoapClient.builder().params(params)
                .methodName(methodName)
                .nameSpace(nameSpace)
                .success(success)
                .error(error)
                .builder()
                .post();
    }
}
